package com.zqu.service.impl;

import com.zqu.mapper.ClientUserMapper;
import com.zqu.pojo.ClientUser;
import com.zqu.service.ClientUserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class ClientUserServiceImpl implements ClientUserService {

    @Autowired
    private ClientUserMapper clientUserMapper;

    @Override
    public ClientUser selectClientUserById(long id) {
        return clientUserMapper.selectTById(id);
    }

    @Override
    public List<ClientUser> selectList(ClientUser clientUser) {
        return clientUserMapper.selectList(clientUser);
    }

    @Override
    public boolean insertClientUser(ClientUser clientUser) {
        return clientUserMapper.insertT(clientUser)>0;
    }

    @Override
    public boolean updateClientUser(ClientUser clientUser) {
        return clientUserMapper.updateT(clientUser)>0;
    }

    @Override
    public boolean deleteClientUser(long id) {
        return clientUserMapper.deleteT(id)>0;
    }

    @Override
    public boolean deleteClientUserByIds(String[] ids) {
        return clientUserMapper.deleteTByIds(ids)>0;
    }
}
